# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:       加一
# Name:         3-2
# Description:
# Author:       加一
# Date:         2019/3/2
#-------------------------------------------------------------------------------

dic = {"name":"jiayi","age":21}
print(dic)

dic1 = {}
print(dic1)

# 如果不提前进行初始化，会报错。使用字典前先定义空字典
dic2 = {}
dic2['name'] = '1111'
print(dic2)

d ={}
d['names'] = 'by'
d['count'] = 16
print(d)
d[12] = '100'
print(d)
d[0.1] = 'aa'
print(d)
t = (10,20)
d[t] = 'tuple'
print(d)
print(len(d))

list1 = [11, 22, 33]
list2 = ['aa', 'bb', 'cc']
length = len(list1)
for i in range(length):
    print(list1[i], list2[i])
